var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});

router.get('/api/index_list/0/data/1', function(req, res, next) {
 res.send({
   code:0,
   data:[
     topBar[
      {id:0,label:'推荐'},
      {id:1,label:'大红袍'},
      {id:2,label:'铁观音'},
      {id:3,label:'绿茶'},
      {id:4,label:'普洱'},
      {id:5,label:'茶具'}
     ]
   ]
 })
});

module.exports = router;
